package com.java.test.system.feesettings.entity;

import lombok.Data;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * MemberLVVO
 *
 * @author lijie1
 * @version 1.0
 * @date 2020/10/10 0010 10:53
 */
@Data
public class MemberLVEntity implements RowMapper<MemberLVEntity> {
    private long id;
    private String memberGradeName;
    private long upLvExp;
    private String content;

    @Override
    public MemberLVEntity mapRow(ResultSet resultSet, int i) throws SQLException {
        MemberLVEntity info = new MemberLVEntity();
        info.setId(resultSet.getLong("id"));
        info.setMemberGradeName(resultSet.getString("member_grade_name"));
        info.setUpLvExp(resultSet.getLong("up_lv_exp"));
        info.setContent(resultSet.getString("content"));
        return info;
    }
}
